package IntegrationTest;

import io.RoomInput;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

import junit.framework.TestCase;
import entities.Room;

public class Test_Room_RoomInput_RoomInputProcessor extends TestCase {
	public void setUp() throws FileNotFoundException {
		//try {
			RoomInput.roomInput = new FileInputStream("RoomInputTest.txt");
		//} catch(Exception e) {
		//	System.out.println("RoomInputTest.txt cannot be open. The test is not performed!");
		//}
	}
	
	public void test() {
		RoomInput.roomDataFromFile();
		assertEquals(3,Room.getNumOfRoom());
	}
	
	public void tearDown() {
		Room.clear();
	}
}
